package com.ruoyi.finance.controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.common.security.annotation.PreAuthorize;
import com.ruoyi.finance.domain.JrRentInstallmentResponseDto;
import com.ruoyi.finance.domain.TJrFactoring;
import com.ruoyi.finance.domain.TJrquery;
import com.ruoyi.finance.service.financeApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @return name
 */
@RestController
@RequestMapping("financeApply")
public class financeApplyController {
    @Autowired
    private financeApplyService service;

    @PreAuthorize(hasPermi = "finance:financeApply:list")
    @RequestMapping("list")
    public PageInfo<JrRentInstallmentResponseDto> listAll(TJrquery tJrquery){
        System.out.println("数据信息"+tJrquery);
        PageHelper.startPage(tJrquery.getPageNum(),tJrquery.getPageSize());
        List<JrRentInstallmentResponseDto> list = service.listAll(tJrquery);
        return new PageInfo<>(list);
    }
}
